﻿module Lhz.Page {
    export class StaticData {
        getMenuGroups(): Lhz.Interface.Menu.MenuGroup[] {
            var result: Lhz.Interface.Menu.MenuGroup[] = [];
            var mgDataManagement = this.buildMenuGroup("数据维护");
            var mUserManagement = this.buildMenuItem("用户管理", "data-management/user-management.html");
            mgDataManagement.menuItems.push(mUserManagement);
            var mApplicationManagement = this.buildMenuItem("应用管理", "data-management/application-management.html");
            mgDataManagement.menuItems.push(mApplicationManagement);
            var mServiceManagement = this.buildMenuItem("服务管理", "data-management/service-management.html");
            mgDataManagement.menuItems.push(mServiceManagement);

            var mgDataView = this.buildMenuGroup("数据查看");
            var mServiceView = this.buildMenuItem("服务查看", "data-view/service-view.html", false);
            mgDataView.menuItems.push(mServiceView);

            result.push(mgDataManagement);
            result.push(mgDataView);
            return result;
        }

        private buildMenuGroup(name: string): Lhz.Interface.Menu.MenuGroup {
            return { name: name, menuItems: [] };
        }

        private buildMenuItem(name: string, pageUrl: string, admin: boolean = true): Lhz.Interface.Menu.MenuItem {
            return { name: name, pageUrl: pageUrl, admin: admin };
        }

        getSkins(): string[] {
            var skins: string[] = [];
            skins.push("black-tie");
            skins.push("blitzer");
            skins.push("cupertino");
            skins.push("dark-hive");
            skins.push("dot-luv");
            skins.push("eggplant");
            skins.push("excite-bike");
            skins.push("flick");
            skins.push("hot-sneaks");
            skins.push("humanity");
            skins.push("le-frog");
            skins.push("mint-choc");
            skins.push("overcast");
            skins.push("pepper-grinder");
            skins.push("redmond");
            skins.push("smoothness");
            skins.push("south-street");
            skins.push("start");
            skins.push("sunny");
            skins.push("swanky-purse");
            skins.push("trontastic");
            skins.push("ui-darkness");
            skins.push("ui-lightness");
            skins.push("vader");
            return skins;
        }
    }
}
